FROM 10.0.100.114/library/php:7.2-cli

COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint
RUN chmod +x /usr/local/bin/docker-entrypoint

#ONBUILD COPY . /var/www

#ONBUILD RUN chown -R www-data:www-data /var/www; \
#        find /var/www -type f -exec chmod 644 {} \;; \
#        find /var/www -type d -exec chmod 755 {} \;

ENTRYPOINT ["docker-entrypoint"]

CMD ["/usr/sbin/crond", "-l", "2", "-f"]
